package com.ztesoft.web.taskgenerator.db.po;

import java.util.Date;

import org.apache.commons.lang.StringUtils;
import org.springframework.beans.BeanUtils;

import com.ztesoft.framework.dto.AbstractDto;

public class DmTaskPO extends AbstractDto {
	private Integer dmTaskId;
	private Integer dmPlanId;
	private Integer groupNbr;
	private Integer sourceType;
	private String name;
	private Integer priority;
	private Integer parentTaskId;
	private String needSubtask;
	private Date scheduleDate;
	private Date startTime;
	private Date endTime;
	private Integer isCheck;
	private String state;
	private Date stateDate;
	private Date createDate;
	private String errorDesc;
	private Integer nodeId;
	
	// 妹的
	private String startTimeStr;
	private String endTimeStr;

	// 结果明细表名
	private String dmTableName;
	// 结果明细表中存在该任务ID的记录数
	private Integer count;

	private Integer operType;
	private String tableName;
	private String planName;

	private String scheduleResult;
	private Date effDate;
	private Date expDate;
	private Date sysDate;
	private Integer isChange;
	
	private String indexChangeFlag;

	public String getIndexChangeFlag() {
		return indexChangeFlag;
	}

	public void setIndexChangeFlag(String indexChangeFlag) {
		this.indexChangeFlag = indexChangeFlag;
	}

	public String getStartTimeStr() {
		return startTimeStr;
	}

	public void setStartTimeStr(String startTimeStr) {
		this.startTimeStr = startTimeStr;
	}

	public String getEndTimeStr() {
		return endTimeStr;
	}

	public void setEndTimeStr(String endTimeStr) {
		this.endTimeStr = endTimeStr;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public String getDmTableName() {
		return dmTableName;
	}

	public void setDmTableName(String dmTableName) {
		this.dmTableName = dmTableName;
	}

	public Integer getIsChange() {
		return isChange;
	}

	public void setIsChange(Integer isChange) {
		this.isChange = isChange;
	}

	public Date getSysDate() {
		return sysDate;
	}

	public void setSysDate(Date sysDate) {
		this.sysDate = sysDate;
	}

	public void setDmTaskId(Integer dmTaskId) {
		this.dmTaskId = dmTaskId;
	}

	public Integer getDmTaskId() {
		return dmTaskId;
	}

	public void setDmPlanId(Integer dmPlanId) {
		this.dmPlanId = dmPlanId;
	}

	public Integer getDmPlanId() {
		return dmPlanId;
	}

	public void setGroupNbr(Integer groupNbr) {
		this.groupNbr = groupNbr;
	}

	public Integer getGroupNbr() {
		return groupNbr;
	}

	public void setSourceType(Integer sourceType) {
		this.sourceType = sourceType;
	}

	public Integer getSourceType() {
		return sourceType;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return StringUtils.isBlank(name) ? name : name.trim();
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	public Integer getPriority() {
		return priority;
	}

	public void setParentTaskId(Integer parentTaskId) {
		this.parentTaskId = parentTaskId;
	}

	public Integer getParentTaskId() {
		return parentTaskId;
	}

	public void setNeedSubtask(String needSubtask) {
		this.needSubtask = needSubtask;
	}

	public String getNeedSubtask() {
		return StringUtils.isBlank(needSubtask) ? needSubtask : needSubtask.trim();
	}

	public void setIsCheck(Integer isCheck) {
		this.isCheck = isCheck;
	}

	public Integer getIsCheck() {
		return isCheck;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getState() {
		return StringUtils.isBlank(state) ? state : state.trim();
	}

	public void setErrorDesc(String errorDesc) {
		this.errorDesc = errorDesc;
	}

	public String getErrorDesc() {
		return StringUtils.isBlank(errorDesc) ? errorDesc : errorDesc.trim();
	}

	public void setNodeId(Integer nodeId) {
		this.nodeId = nodeId;
	}

	public Integer getNodeId() {
		return nodeId;
	}

	public Date getScheduleDate() {
		return scheduleDate;
	}

	public void setScheduleDate(Date scheduleDate) {
		this.scheduleDate = scheduleDate;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getStateDate() {
		return stateDate;
	}

	public void setStateDate(Date stateDate) {
		this.stateDate = stateDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getOperType() {
		return operType;
	}

	public void setOperType(Integer operType) {
		this.operType = operType;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getPlanName() {
		return planName;
	}

	public void setPlanName(String planName) {
		this.planName = planName;
	}

	public String getScheduleResult() {
		return scheduleResult;
	}

	public void setScheduleResult(String scheduleResult) {
		this.scheduleResult = scheduleResult;
	}

	public Date getEffDate() {
		return effDate;
	}

	public void setEffDate(Date effDate) {
		this.effDate = effDate;
	}

	public Date getExpDate() {
		return expDate;
	}

	public void setExpDate(Date expDate) {
		this.expDate = expDate;
	}

	public void copyValueTo(DmTaskPO bo) {
		BeanUtils.copyProperties(this, bo);
	}

	public DmTaskPO cloneBO() {
		DmTaskPO bo = new DmTaskPO();
		this.copyValueTo(bo);
		return bo;
	}
}